package org.xgluo.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@Component
@PropertySource(value = "classpath:db.properties")
public class DBConfig {

    @Value("${mysql.url}")
    private String mysql_url;

    @Value("${mysql.driver}")
    private String mysql_Driver;

    @Value("${mysql.username}")
    private String mysql_user;

    @Value("${mysql.password}")
    private String mysql_pass;

    public String getMysql_url() {
        return mysql_url;
    }

    public void setMysql_url(String mysql_url) {
        this.mysql_url = mysql_url;
    }

    public String getMysql_Driver() {
        return mysql_Driver;
    }

    public void setMysql_Driver(String mysql_Driver) {
        this.mysql_Driver = mysql_Driver;
    }

    public String getMysql_user() {
        return mysql_user;
    }

    public void setMysql_user(String mysql_user) {
        this.mysql_user = mysql_user;
    }

    public String getMysql_pass() {
        return mysql_pass;
    }

    public void setMysql_pass(String mysql_pass) {
        this.mysql_pass = mysql_pass;
    }
}
